#ifndef  _FLAPP_TMR_H_
#define  _FLAPP_TMR_H_
#include <stdint.h>
#include "at32f425.h"

#define ERR_FAN_LOW				1000	//风速转速在1000-5000之间正常
#define ERR_FAN_HIGH			5000
#define ERR_ION_LOW				200		//离子自检电压在0.2V-0.8V之间正常
#define ERR_ION_HIGH			800

//自检结构体
typedef struct flapp_tmr
{
	confirm_state flag_adc_trans;
	uint16_t fan_speed;
	uint16_t fan_freq;
}flapp_tmr_t;

void flapp_tmr_run(void);
void flapp_set_adc_sta(confirm_state mark);
void flapp_fan_speed_plus(void);
struct flapp_tmr flapp_get_tmr_status(void);
#endif

